﻿using System;
using System.Collections.Generic;
using CarsClassLibrary;

namespace Logic
{
    public class Counter
    {
        public double Count(List<AbstractCar> A)
        {
            double Price = 0;
            foreach (AbstractCar auto in A)
            {
                Price += auto.price;
            }
            return Price;
        }
    }
}
